package com.zhu.dao;

import com.zhu.domain.Account;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 账户dao接口
 */

@Repository
public interface AccountDao {
    //查询所有账户
    @Select("select * from studentmanager")
    public List<Account>findAll();

    //保存账户信息
    @Insert("insert into studentmanager(name,money)values (#{name},#{money})")
    public void saveAccount(Account account);
}
